package com.wx.spring.utils;


/**
 * @author wx
 * @Description: 容器工具类
 * @date 2019/1/5 000520:04
 */
public class VesselUtils {

    private VesselUtils(){
        throw new RuntimeException("工具类禁止实例化");
    }

    
    /**
     * @description: 验证数组是否为空
     * @author: wx
     * @date: 2019/1/8 0008
     * @param t
     * @return: boolean
     */
    public static <T> boolean isArrayEmpty(T ...t){
        return t == null || t.length == 0;
    }
    /**
     * @description: 验证数组是否不为空
     * @author: wx
     * @date: 2019/1/8 0008
     * @param t
     * @return: boolean
     */
    public static <T> boolean isNotArrayEmpty(T ...t){
        return !isArrayEmpty(t);
    }
}
